import {createRouter, createWebHistory} from 'vue-router'
import Today from '@/views/Today.vue'

const routes = [
    {
        path: '/',
        name: 'today',
        component: Today
    },
    {
        path: '/tomorrow',
        name: 'tomorrow',
        component: () => import('@/views/Tomorrow')
    },
    {
        path: '/week',
        name: 'week',
        component: () => import('@/views/Week')
    },
    {
        path: '/month',
        name: 'month',
        component: () => import('@/views/Month')
    },
    {
        path: '/year',
        name: 'year',
        component: () => import('@/views/Year')
    },
    // ------------------测试----------------------
    {
        path: '/test',
        name: 'testOne',
        component: () => import('@/views/Test/TestOne'),
    },
    // -----------------------------------------
]


const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
